﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace PathTransfer
{
    class PathParser
    {
        public List<string> allPath = new List<string>();

        private static PathParser instane;
        public static PathParser _Instance
        {
            get
            {
                if (instane == null)
                {
                    instane = new PathParser();
                    return instane;
                }
                return instane;
            }
        }

        public PathParser()
        {
            LoadAllPath();
        }

        private void LoadAllPath()
        {
            try
            {
                StreamReader sr = File.OpenText("./fullPath.txt");
                string nextLine;
                while ((nextLine = sr.ReadLine()) != null)
                {
                    allPath.Add(nextLine);
                }
                sr.Close();
            }
            catch(Exception e) {
                Console.WriteLine(e.Message);
                return;
            }
            
        }
    }
}
